package com.yubest.sleuth.controller;

import com.yubest.sleuth.service.HelloServiceFeign;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Slf4j
public class HelloController {

    @Autowired
    private HelloServiceFeign helloServiceFeign;

    @GetMapping(value = "/hello")
    public Object hello() {
        log.info("开始feign调用");
        return helloServiceFeign.hello();
    }

}
